package com.ruoyi.jproom.mapper;


import com.ruoyi.jproom.entity.Housing;

import java.util.List;

/**
 * @author zeo
 * @explain 房源信息持久层
 * @date 2020/7/27 11:08
 */
public interface HousingManageMapper {

    /**
     * 获取所有出租房源数据
     * @param housing
     * @return
     */
    List<Housing> findRentHousingList (Housing housing);

    /**
     * 根据房源ID获取房源数据
     * @param housingId
     * @return
     */
    Housing findHousingByHousingId(String housingId);

    /**
     * 修改出租房源
     * @param housing
     * @return
     */
    int rentHousingEdit(Housing housing);

    /**
     * 获取所有售卖房源数据
     * @param housing
     * @return
     */
    List<Housing> findSellHousingList (Housing housing);

    /**
     * 作废房源
     * @param housingId
     * @return
     */
    int toVoidHousing(String housingId);


}
